@extends('layouts.home')

@section('content')
    @foreach($data as $value)
        <div class="panel panel-default">
            <div class="panel-heading">
                <span class="glyphicon glyphicon-star"></span> {{ $value->title }}
            </div>
            <div class="panel-body" style="height:120px;">
                {{ $value->content }}
            </div>
            <div class="panel-footer">
                {{ $value->user->name }} / {{ $value->created_at }}<span class="navbar-right"><a  href="{{ url('a_' . $value->id . '.html') }}" style="margin-right: 15px">查看详情</a></span>
            </div>
        </div>
    @endforeach
    {{ $data->links() }}
@endsection
